package com.swinw.asumall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.swinw.asumall.order.vo.OrderConfirmVo;
import com.swinw.asumall.order.vo.OrderSubmitVo;
import com.swinw.asumall.order.vo.PayVo;
import com.swinw.asumall.order.vo.SubmitOrderResponseVo;
import com.swinw.common.utils.PageUtils;
import com.swinw.asumall.order.entity.OrderEntity;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author 罗义华
 * @email 2407550328@qq.com
 * @date 2020-10-04 16:32:38
 */
public interface OrderService extends IService<OrderEntity> {


    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder() throws ExecutionException, InterruptedException;

    SubmitOrderResponseVo submitOrder(OrderSubmitVo vo) throws Exception;

    PayVo getPayVoByOrderSn(String orderSn);

    PageUtils getOrderByMemberId(Map<String, Object> params) throws ExecutionException, InterruptedException;
}

